﻿﻿<template>
    <el-card class="form-container">
        <el-form :model="systemDeptDetail"   label-width="100px">
                            <el-form-item label="" prop="id">
                    <el-input v-model="systemDeptDetail.id"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="部门名称" prop="deptName">
                    <el-input v-model="systemDeptDetail.deptName"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="部门编号" prop="deptCode">
                    <el-input v-model="systemDeptDetail.deptCode"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="上级部门编号" prop="parentCode">
                    <el-input v-model="systemDeptDetail.parentCode"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="上级部门名称" prop="parentName">
                    <el-input v-model="systemDeptDetail.parentName"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="部门排序" prop="deptSort">
                    <el-input v-model="systemDeptDetail.deptSort"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="部门层级" prop="deptLevel">
                    <el-input v-model="systemDeptDetail.deptLevel"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="是否删除 1.正常 2.删除" prop="delFlag">
                    <el-input v-model="systemDeptDetail.delFlag"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="创建时间" prop="createTime">
                    <el-input v-model="systemDeptDetail.createTime"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="修改时间" prop="updateTime">
                    <el-input v-model="systemDeptDetail.updateTime"  disabled="disabled"></el-input>
                </el-form-item>
                        <el-form-item>
                <el-button @click="close">关闭</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</template>

<script>
    import { findSystemDeptDetail } from '@/api/admin/systemDept'
    export default{
        name: 'view-systemDept',
        data(){
            return {
                systemDeptDetail: {}
            }
        },
        created() {
            this.view(this.$route.query.id)
        },
        methods:{
            view(val){
                findSystemDeptDetail(val).then(res => {
                    console.log('查询返回结果',res)
                this.systemDeptDetail = res.data.responseData
            })
            },
            close(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style>
</style>
